﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;

namespace exercice1
    {
    class Program
        {
        static void Main(string[] args)
            {
            PlatDuJour plat1 = new PlatDuJour("Salade verte", "OssoBucco", Jour.lundi, 17.50);
            PlatDuJour plat2 = new PlatDuJour("Salade mêlée", "Pizza Romana", Jour.mardi, 15.00);
            PlatDuJour plat3 = new PlatDuJour("Classico", "Ceviche", Jour.mercredi, 23.00);

            System.Console.WriteLine(plat1);
            System.Console.WriteLine("\n");

            System.Console.WriteLine(plat2);
            System.Console.WriteLine("\n");

            System.Console.WriteLine(plat3);
            System.Console.WriteLine("\n");

            displayMsgDay();
                
            System.Console.ReadKey();
            }

        private static void displayMsgDay()
            {
            DateTime dateValue = new DateTime();
            CultureInfo[] cultures = 
                {
                new CultureInfo("en-US"), 
                new CultureInfo("fr-FR"),
                new CultureInfo("de-DE"),
                new CultureInfo("es-ES")
                };

            foreach (CultureInfo culture in cultures)
                {
                if (culture.Name == "en-US") { System.Console.Write("Today we are "); }
                else if (culture.Name == "fr-FR") { System.Console.Write("Aujourd'hui nous sommes "); }
                else if (culture.Name == "de-DE") { System.Console.Write("Heute ist "); }
                else if (culture.Name == "es-ES") { System.Console.Write("Hoy es "); }

                System.Console.WriteLine(culture.DateTimeFormat.GetDayName(dateValue.DayOfWeek));
                }
            }
        }
    }
